﻿namespace Digitalmes.Core.Domain.SeedWork;

/// <summary>
/// 带有完整审计信息的实体对象基类。
/// </summary>
public abstract class AuditedEntity : EntityBase, IAuditedEntity
{
    public string? CreatedBy { get; set; }

    public DateTime CreatedTime { get; set; }

    public string? UpdatedBy { get; set; }

    public DateTime? UpdatedTime { get; set; }
}

/// <summary>
/// 带有创建信息的审计实体。
/// </summary>
public abstract class CreationAuditedEntity : EntityBase, ICreationAuditedEntity
{
    public string? CreatedBy { get; set; }

    public DateTime CreatedTime { get; set; }
}

/// <summary>
/// 带有更新信息的审计实体。
/// </summary>
public abstract class UpdationAuditedEntity : EntityBase, IUpdationAuditedEntity
{
    public string? UpdatedBy { get; set; }

    public DateTime? UpdatedTime { get; set; }
}
